package cn.edu.scau.cmi.huhaoxian.orm.service;

import java.util.ArrayList;

import cn.edu.scau.cmi.huhaoxian.orm.domain.Student;
import cn.edu.scau.cmi.huhaoxian.orm.domain.Teacher;
import cn.edu.scau.cmi.huhaoxian.orm.entity.EStudent;
import cn.edu.scau.cmi.huhaoxian.orm.entity.ETeacher;
import cn.edu.scau.cmi.huhaoxian.orm.mapper.EStudentMapper;
import cn.edu.scau.cmi.huhaoxian.orm.mapper.ETeacherMapper;

public class TeacherService {
	
	public Teacher findById_withoutStudents(long id,ETeacherMapper mapper) {
		ETeacher teacher = mapper.getETeacher(id);
		Teacher teacher2 = new Teacher();
		teacher2.setId(id);
		teacher2.setName(teacher.getName());
		return teacher2;
	}

	
}
